<%--
  Created by IntelliJ IDEA.
  User: nidebibaba
  Date: 2023/2/22
  Time: 18:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" isELIgnored="false" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
    <style type="text/css">
        table
        {
            border-collapse: collapse;
            margin: 0 auto;
            text-align: center;
        }
        table td, table th
        {
            border: 1px solid #cad9ea;
            color: #666;
            height: 30px;
        }
        table thead th
        {
            background-color: #CCE8EB;
            width: 100px;
        }
        table tr:nth-child(odd)
        {
            background: #fff;
        }
        table tr:nth-child(even)
        {
            background: #F5FAFA;
        }
    </style>
</head>
<body>
<a href="<%=request.getContextPath()%>/percent/add ">添加新成员</a>
<a href="<%=request.getContextPath()%>/percent/counts">赏金转移</a>
<p style="text-align: center">欢迎来自阿尔法的第一刺客${sessionScope.user.username}</p>
<table width="90%" class="table">
    <caption>
        <h2>
            暗杀名单</h2>
    </caption>
    <thead>
    <tr>
        <th>
            姓名
        </th>
        <th>
            年龄
        </th>
        <th>
            性别
        </th>
        <th>
           生日
        </th>
        <th>
            简介
        </th>
        <th>
            赏金
        </th>
        <th>
            操作
        </th>
    </tr>
    </thead>
    <c:forEach items="${list}" var="li">
    <tr>
        <td>
           <a href="<%=request.getContextPath()%>/percent/xiu/${li.id}"> ${li.name}</a>
        </td>
        <td>
            ${li.age}
        </td>
        <td>
            ${li.sex}
        </td>
        <td>
            ${li.birthday}
        </td>
        <td>
                ${li.introduce}
        </td>
        <td>
                ${li.salary}
        </td>
        <td>
            <a href="<%=request.getContextPath()%>/percent/delete/${li.id}">删除</a>
            <a href="<%=request.getContextPath()%>/percent/gai/${li.id}">修改</a>
        </td>
    </tr>
    </c:forEach>
</table>
</body>
</html>
